package com.cjdx.supermarket.controller;

import com.cjdx.supermarket.entity.Bill;
import com.cjdx.supermarket.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: wanjianhong
 * @Version: 1.0
 * @Description:
 */
@RestController
@RequestMapping("/bill")
public class BillController {
    @Autowired
    private BillService billService;

    @GetMapping("/list")
    public List<Bill> list(){
        return billService.list();
    }
}
